#ifndef PHP_PREPROCESSOR_CLASS
#define PHP_PREPROCESSOR_CLASS

#include "Text/TextPreprocessor.hpp"
#include "Text/Url.hpp"
#include "php.h"

#define PREPROCESSOR_CLASS_NAME EVILWORLDS_NS    "\\Text\\Preprocessor"

zend_class_entry *preprocessor_ce; 
zend_object_handlers preprocessor_object_handlers; 

PHP_METHOD(Preprocessor, __construct); 
PHP_METHOD(Preprocessor, analize); 
PHP_METHOD(Preprocessor, resize); 
PHP_METHOD(Preprocessor, free); 
PHP_METHOD(Preprocessor, prepare); 
PHP_METHOD(Preprocessor, setText); 
PHP_METHOD(Preprocessor, setHomeUrl); 
PHP_METHOD(Preprocessor, setRedirectUrl); 
PHP_METHOD(Preprocessor, setSmileysUrl); 
PHP_METHOD(Preprocessor, setUserUrl); 
PHP_METHOD(Preprocessor, setSessionId); 
PHP_METHOD(Preprocessor, getText); 
PHP_METHOD(Preprocessor, setFlags); 

struct preprocessor_object {
    zend_object std; 
    TextPreprocessor *tp; 
}; 

void init_text_preprocessor(); 
void destroy_text_preprocessor(); 
#endif // PHP_PREPROCESSOR_CLASS

